<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>

<body>
    <div id="app"></div>
</body>
<script>
    const app = Vue.createApp({//application 创建一个Vue应用
        data() {
            return {
                message:'hello world!'//1.在这里定义数据    也就是model
            }
        },
        methods: {
            
        },
        created() {
            
        },
        mounted() {
            
        },
        template: `<h2>{{message}}</h2>`//2.模板，view

        //定义后View自动关联,viewmodel
    })
    const vm = app.mount("#app")//挂载这个Vue应用
    console.log(vm)//mvvm  m model v view vm viewmodel
</script>

</html>